package net.zjitc.service;

import net.zjitc.common.ResponseResult;
import net.zjitc.entity.Attribute;

import java.util.List;

/**
 * @Author 毛钰深
 * @Create 2021/12/17 11:32
 */

public interface AttributeService {
    ResponseResult<List<Attribute>> findAttributeByCatIdAndSel(Integer id, String sel);

    ResponseResult<Attribute> addAttribute(Integer id, Attribute attribute);

    ResponseResult<Attribute> deleteAttribute(Integer id, Integer attrId);

    ResponseResult<Attribute> selectById(Integer id, Integer attrId);

    ResponseResult<Attribute> updateAttribute(Integer id, Integer attrId, Attribute attribute);

}
